package com.atguigu.principle.addpter.objaddpter;


public class Phone {
    public void charging(IVoltageSV iVoltageSV){
        if (iVoltageSV.output5V()==5){
            System.out.println("转为5V,可以充电");
        }else {
            System.out.println("电压不稳定，停止使用");
        }
    }
}
